﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Character.Characteristic
{
    public class CharacterBaseCharacteristic
    {
        public short Base { get; set; }
        public short ObjectsAndMountBonus { get; set; }
        public short AlignGiftBonus { get; set; }
        public short ContextModif { get; set; }

        public CharacterBaseCharacteristic(short @base, short objectsAndMountBonus,
            short alignGiftBonus, short contextModif)
        {
            this.Base = @base;
            this.ObjectsAndMountBonus = objectsAndMountBonus;
            this.AlignGiftBonus = alignGiftBonus;
            this.ContextModif = contextModif;
        }

        public void Serialize(NetworkMessage message)
        {
            message.WriterBuffer.writeShort(this.Base);
            message.WriterBuffer.writeShort(this.ObjectsAndMountBonus);
            message.WriterBuffer.writeShort(this.AlignGiftBonus);
            message.WriterBuffer.writeShort(this.ContextModif);
        }
    }
}
